package com.adams.access.db.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * File Name : ActionType.java
 * 
 * @Description : 动作类型
 */
@Entity
@Table(name = "T_VIEW_ACTION_TYPE")
public class ActionType
{

	public static String ACTIONTYPE_ADD = "add";
	public static String ACTIONTYPE_EDIT = "edit";
	public static String ACTIONTYPE_DELETE = "delete";
	public static String ACTIONTYPE_GRID = "grid";
	public static String ACTIONTYPE_ROWDBLCLICK = "rowdblclick";
	public static String ACTIONTYPE_CHILDMANAGE = "childmanage";
	public static String ACTIONTYPE_ADDBYSELECT = "addbyselect";

	private String code;// 编码

	private String name;// 名称

	@Id
	@GeneratedValue(generator = "assigned")
	@GenericGenerator(name = "assigned", strategy = "assigned")
	@Column(name = "CODE", length = 50)
	public String getCode()
	{
		return code;
	}

	public void setCode(String code)
	{
		this.code = code;
	}

	@Column(name = "NAME")
	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

}
